package com.nyist.zk.dao;

import com.nyist.zk.entities.BloodManager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BloodManagerDao {

    BloodManager getBloodManagerByIdAndPassword(@Param("bm_id") Integer bm_id, @Param("bm_password") String bm_password);

    List<BloodManager> findAllBloodManager();

    List<BloodManager> findBloodManagerByNameLike(String bm_name);

    BloodManager findByIdBloodManager(Integer bm_id);

    void insertBloodManager(BloodManager BloodManager);

    void deleteByIdBloodManager(Integer bm_id);

    void updateBloodManager(BloodManager BloodManager);

}
